package com.tansun.easycare.rule.rulelog.dao;

import java.util.Date;
import java.util.List;

import com.tansun.easycare.rule.common.dao.RuleBaseDao;
import com.tansun.easycare.rule.monitor.entity.RuleMonitorInfo;
import com.tansun.easycare.rule.rulelog.entity.RuleLogs;

/**
 * 规则日志DAO接口
 * @author lph
 * @version 2018-07-23
 */

public interface RuleLogsDao extends RuleBaseDao<RuleLogs> {
	/**
     * 查找数据集
     */
    List<RuleLogs> findList(RuleLogs ruleLogs);
    
    /*查找group_by后的数据
     **/
	List<RuleLogs> groupfindList(RuleLogs ruleLogs);

	/*饼状图的数据的获取*/
	List<RuleLogs> groupfindListPie(RuleLogs ruleLogs);
	/**
	 * 已使用规则项目统计
	 * @param ruleLogs
	 * @return
	 */
	List<RuleLogs> findUsedProjects(RuleLogs ruleLogs);
	
	RuleLogs getStartTimeFlag();
	
	/**
	 * 查询日志，结束日期不等于,小于
	 * @param ruleLogs
	 * @return
	 */
	public List<RuleLogs> findListEDNQ(RuleLogs ruleLogs);

	/**
	 * 统计调用编码的调用次数 异常次数
	 * @return
	 */
	public List<RuleMonitorInfo> countNumberForMonitor(Date date);

	/**
	 * 统计调用编码的调用次数 异常次数
	 * @return
	 */
	public List<RuleMonitorInfo> countNumberForMonitorFinalResult();
	
}